/*
 * MatchInfo.h
 *
 *  Created on: 2011-1-23
 *      Author: Administrator
 */

#ifndef MATCHINFO_H_
#define MATCHINFO_H_

#include <BaseControl.h>
#include "Race.h"

class CMatchInfo : public CBaseControl
	{
public:
	static CMatchInfo* NewL(const TRect& aRect,const CCoeControl* aParent);
	static CMatchInfo* NewLC(const TRect& aRect,const CCoeControl* aParent);
	virtual ~CMatchInfo();
	
public:
	void Draw(CWindowGc& gc, const TRect& aRect) const;
	void SetLayout();
	void setRace(CRace* aRace);
	
protected:
	CMatchInfo();
	void ConstructL(const TRect& aRect,const CCoeControl* aParent);
	
private:
	CImage* iBackImage;
	CImage* iLeftImage;
	CImage* iRightImage;
	CRace* iRace;//not owner
	};

#endif /* MATCHINFO_H_ */
